<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>应用内协议</title>
    <style>
      html,body,.webview-wrap {
        width:100%;
        height: 100%;
        margin:0;
      }
      .p-text {
        padding:10px;
      }
    </style>
</head>
<body>
    <button onclick="go()">点击发送请求</button>
    <img src="hello://img/demo.png" alt="">
    <script>
      function go() {
        fetch('http://www.baidu.com').then(it => it.json()).then(it=>console.log('json',it))
      }
    </script>
</body>
</html>